package org.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName d_item
 */
@TableName(value ="d_item")
@Data
@Schema(name = "物品领用DItem" ,description = "物品领用记录查询对象")
public class DItem implements Serializable {

    @Schema(description = "领用记录Id")
    @TableId
    private Integer mid;

    @Schema(description = "房间号")
    private String apartmentId;

    @Schema(description = "人员Id")
    private Integer sid;

    @Schema(description = "人员工号")
    @TableField(exist = false)
    private String empNo;

    @Schema(description = "人员名")
    @TableField(exist = false)
    private String empName;

    @Schema(description = "物品名称")
    private String itemName;

    @Schema(description = "物品数量")
    private Integer itemNumber;

    @Schema(description = "更新日期")
    private Date updateDate;

    @Schema(description = "归还日期")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date backDate;

    @Schema(description = "物品描述")
    private String itemDesc;

    @Schema(description = "物品状态")
    private Integer itemStatus;

    @Schema(description = "是否被删除")
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;
}